package com.examlpe.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //-------人员模块错误码------------
    ErrorCode REGISTER_INFO = new ErrorCode(100,"注册信息为空");
    ErrorCode MAIL_ERROR = new ErrorCode(101,"邮箱错误");
    ErrorCode PHONE_NUMBER_ERROR = new ErrorCode(102,"手机号错误");
    ErrorCode IDENTITY_ERROR = new ErrorCode(103,"身份错误");
    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(104,"密码为空");
    ErrorCode PASSWORD_ERROR = new ErrorCode(105,"密码错误");
    ErrorCode MAIL_USED = new ErrorCode(106,"邮箱被使用");
    ErrorCode PHONE_NUMBER_USED = new ErrorCode(107,"手机号被使用");
    ErrorCode LOGIN_INFO_NOT_EXIST = new ErrorCode(108,"登录方式不存在");
    ErrorCode LOGIN_MANNER_NOT_EXIST = new ErrorCode(109,"登录信息不存在");
    ErrorCode USER_NOT_EXIST = new ErrorCode(109,"用户不存在");
    ErrorCode USER_IDENTITY_ABNORMAL = new ErrorCode(111,"用户身份异常");
    ErrorCode VERIFICATIONCODE_ERROR = new ErrorCode(112,"用户身份异常");
    //-------活动模块错误码------------
    ErrorCode CREATE_ACTIVITY_INFO_IS_EMPTY = new ErrorCode(200,"创建的活动为空");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(201,"活动关联人员信息为空");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(202,"活动关联奖品信息为空");
    ErrorCode USER_PRIZE_AMOUNT_ERROR = new ErrorCode(203,"活动关联奖品及人员数量设置异常");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR = new ErrorCode(204,"活动奖品设置错误");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(205,"缓存活动id为空");
    ErrorCode CACHE_ACTIVITY_ID_IS_ERROR = new ErrorCode(206,"缓存活动id有误");
    //-------奖品模块错误码------------


    //-------抽奖模块错误码------------

    ErrorCode ACTIVITY_OR_PRIZE_IS_EMPTY = new ErrorCode(400,"抽奖奖品或关联的奖品不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401,"抽奖活动已完成，无法抽奖");
    ErrorCode ACTIVITY_PRIZE_COMPLETED = new ErrorCode(402,"奖品已被抽取，无法抽奖");
    ErrorCode WINNER_PRIZE_AMOUNT_ERROR = new ErrorCode(403,"中奖人数与奖品数量不一致，无法抽奖");
    ErrorCode ACTIVITY_STATUS_ERROR = new ErrorCode(404,"状态转化失败");

    //-------图片错误码------------
    ErrorCode PICTURE_UPLOAD_ERROR = new ErrorCode(500,"图片上传失败");
}
